/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.supermercadobarateiro.bd;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Mikaely Anaeve
 */
public class FabricaConexao {
       
            public Connection abreConexao() {
                Connection conexao = null;
  
        try {
        conexao = DriverManager.getConnection(
                    "jdbc:mysql://localhost/Supermercado", "root", "micaela");
        } catch (SQLException ex) {
            Logger.getLogger(FabricaConexao.class.getName()).log(Level.SEVERE, null, ex);
       }


  
      return conexao;

        }

    }

        

  
    

